package cn.yunyichina.provider.sys.dao;

import cn.yunyichina.provider.framework.page.PageInfo;
import cn.yunyichina.provider.sys.entity.DeptUserRelation;
import cn.yunyichina.provider.sys.entity.OrgUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

import java.util.List;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2018-02-01 11:32:15
*/
@Repository
@MyBatisRepository
public interface DeptUserRelationDao extends BaseDao<cn.yunyichina.provider.sys.entity.DeptUserRelation>{
    List<OrgUser> listAccountByDept(@Param("wheres")DeptUserRelation wheres,@Param("pageInfo") PageInfo pageInfo);
    Long selectCountAccountByDept(@Param("wheres")DeptUserRelation wheres);
    void deleteByUserId(@Param("deptUserRelation")DeptUserRelation deptUserRelation);

}